home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus Special 25
/
AMIGAplus Sonderheft 25 (2000)(Falke)(DE)(Track 1 of 4)[!].iso
/
PublicDomain
/
Anwendungen
/
TimeOut
/
TimeOut.AMOS
/
TimeOut.amosSourceCode
Wrap
AMOS Source Code
|
1996-04-12
|
3KB
|
109 lines
Screen Open 0,640,512,16,Hires
Hide : Curs Off : Flash Off : Paper 0 : Cls : T=1 : Y1=31
Do
Paper 0 : Locate X2,Y2 : Print " "
Inc Y1
Paper 0 : Locate 0,Y1-1 : Print " "
Paper 6 : Locate 0,Y1 : Print " "
If Y1=32
Y1=0
Paper 0 : Locate 0,32 : Print " "
Paper 6 : Locate 0,0 : Print " "
End If
'
X2=Rnd(40) : Y2=Rnd(30)
Paper 4 : Pen 2 : T=0 : Locate X2,Y2
If ABOUT>0
If ABOUT=10
Print " -- TIME OUT -- "
End If
If ABOUT=9
Print " A SCREENSAVER "
End If
If ABOUT=8
Print " BY LEE HESSELDEN "
End If
If ABOUT=7
Print " OF SATANIC DREAMS "
End If
If ABOUT=6
Print " MADE IN 1999 "
End If
If ABOUT=5
Print " WRITTEN USING AMOS 1.3 "
End If
If ABOUT=4
Print " eMAIL: gimmeloads@beer.com "
End If
If ABOUT=3
Print " WWW: http://www.thisis.evil.nu "
End If
If ABOUT=2
Print " THIS IS MAILWARE "
End If
Dec ABOUT
End If
If ABOUT=0
_DATE$ : Print " ";Param$;
_TIME$ : Print " ";Param$;" "
End If
For WAI=1 To 5000
If Mouse Key=1 Then End
If Mouse Key=2 Then ABOUT=10
Next WAI
Loop
'
Procedure _DATE$
'
' Call DOS DateStamp function
T$=Space$(12)
Dreg(1)=Varptr(T$)
RIEN=Doscall(-192)
NJ=Leek(Varptr(T$))
'
' Find this year's first day
A=1978 : JOUR=7
Do
BIS=0 : If(A and 3)=0 : BIS=1 : End If
Exit If NJ-365-BIS<0
Add JOUR,1+BIS : If JOUR>7 : Add JOUR,-7 : End If
Add NJ,-365-BIS
Inc A
Loop
'
' Find month
M=1
Do
Read N
Exit If NJ-N<0
Add NJ,-N : Inc M
Loop
Inc NJ
'
' Create the string
J$=Mid$(Str$(NJ),2) : If Len(J$)<2 : J$="0"+J$ : End If
M$=Mid$(Str$(M),2) : If Len(M$)<2 : M$="0"+M$ : End If
A$=Mid$(Str$(A),2)
DATE$=J$+"-"+M$+"-"+A$
'
' Length of each month
Data 31,28+BIS,31,30,31,30,31,31,30,31,30,31
'
End Proc[DATE$]
Procedure _TIME$
'
' Call DOS function
T$=Space$(12)
Dreg(1)=Varptr(T$)
RIEN=Doscall(-192)
MN=Leek(Varptr(T$)+4)
SEC=Leek(Varptr(T$)+8)
'
' Minutes calculation
H=MN/60 : H$=Mid$(Str$(H),2) : If Len(H$)<2 : H$="0"+H$ : End If
M=MN mod 60 : M$=Mid$(Str$(M),2) : If Len(M$)<2 : M$="0"+M$ : End If
'
' Final string
TIME$=H$+":"+M$
'
End Proc[TIME$]